From 2f21d41ed47c3b7dab57b1e4fa4d13a49a125844 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 22 Jul 2025 16:55:09 -0400 Subject: [PATCH] tests: Fix negative check for transient etc This test was passing for the wrong reason. Just noticed when reviewing. --- tests-unit-container/test-prepare-root.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests-unit-container/test-prepare-root.sh b/tests-unit-container/test-prepare-root.sh index 466139a0..d3ad3431 100755 --- a/tests-unit-container/test-prepare-root.sh +++ b/tests-unit-container/test-prepare-root.sh @@ -53,8 +53,9 @@ test -f /run/ostree-booted for d in etc usr; do mountpoint /target-sysroot/${d} done -# Not transient by default -test $(findmnt -no FSTYPE /target-sysroot/etc) '!=' tmpfs +# etc is not transient by default +etc_options=$(findmnt -no OPTIONS /target-sysroot/etc) +[[ ! $etc_options =~ "upperdir=/run/ostree/transient-etc" ]] # Default is ro in our images grep -q 'readonly.*true' /usr/lib/ostree/prepare-root.conf -- 2.30.2